package com.ling.uiLogic
{
	import com.ling.ui.TimeLevelPropertyUI;
	
	import mx.core.UIComponent;
	
	import spark.components.Group;
	
	public class TimeLevelCategoryPropertyPanel extends TimeLevelPropertyUI implements IMapCategoryPropertyPanel
	{
		public function TimeLevelCategoryPropertyPanel()
		{
			super();
		}
		public function destroy():void
		{
			if(this.parent)
				(this.parent as Group).removeElement(this);
		}
		
		public function get sprite():UIComponent
		{
			return this;
		}
		public function getXml():XML
		{
			var xml:XML = <property/>;
			
			xml.appendChild(<Time num={timeTxt.text}/>);
			xml.appendChild(<Stars num={star_1_txt.text+"|"+star_2_txt.text+"|"+star_3_txt.text}/>);
			return xml;
		}
	}
}